<template>
	<view>
		首页
	</view>
</template>

<script setup>
// import {pageStudyInfo} from '../../utils/api'; // 导入封装的请求方法
import { computed, onMounted } from 'vue';
import {get,post} from '../../utils/api.js'
import useUserStore from '../../store/user.js';
import { ref } from 'vue'

const src = ref('')

const userStore = useUserStore()

const getUserName = computed(()=>{
		// 获取微信一键登录的用户名
		console.log(userStore.getUserInfo.nickName,'用户名')
		// if(userStore.getUserInfo.nickName != undefined){
		// 	return userStore.getUserInfo.nickName
		// }else{
		// 	return userStore.getUserInfo.nickName
		// }
		
	})
	
	onMounted(()=>{
		// // 获取微信一键登录的头像
		// if(userStore.getUserInfo.avatarUrl != undefined){
		// 	// src.value = userStore.getUserInfo.avatarUrl
		// }
		console.log(userStore,'头像')
		console.log(userStore,'用户名')
		console.log(uni.getStorageSync('userinfo'),'用户信息')
		 
	})
	
	
	
</script>

<style>

</style>